package com.example.redistest.servic;

import com.example.redistest.pojo.Student;
import org.springframework.stereotype.Repository;
import org.springframework.stereotype.Service;

/**
 * 渠道数据缓存操作接口
 * Created by ant on 2016/12/19.
 */
@Repository("channelCacheDao")
public class UChannelCacheDao extends URedisTemplate<Student> {


    @Override
    public String getTypeKey() {
        return "Student";
    }

    @Override
    public String getDataKey(Student data) {
        return data.getId() + "";
    }
}
